Parameters
- n
- the name of the
XAttribute
- v
- the value
- defval
- the default value for this attribute/property
- conv
- a function from T to String
Type Parameters
- T
- the value type
Return Value
an
XAttribute
, or null if the value is null or if it is equal to the default value